<?php
// No directAcces
defined( '_AppBackMiage' ) or die( 'Restricted access' );
if(isAdministrateur ()){
    include_once (DS."backoffice/include/header.php");

    if(isset($_GET['uid']) && !empty($_GET['uid']))
    {
        $technologie = new Technologie($_GET['uid']);
    }
    else
    {
        redirectTo(URLBACK."_portailtechnologie_list");
    }


    if(isset($_POST['modifier']) && !empty($_POST['modifier'])){
            if(isset($_POST['nom']) && !empty($_POST['nom'])){
                    $technologie->setNomTechnologie($_POST['nom']);
                    $technologie->save();
            }
    }
    include_once( DS."backoffice/include/toppanel_portail.php");
    ?>
    <div id="wrapper">
            <div id="content">
            <div id="box">
                    <h3 id="adduser">Edition d'une technologie</h3>
                                    <form id="form" method="post">
                                            <fieldset id="personal"><legend>Modification de la Technologie</legend>
                                                    <p><label for="nom">Technologie:</label><input type="text" id="nom" name="nom" value=<?php echo $technologie->getNomTechnologie();?>  tabindex="1" /></p>
                                            </fieldset>

                            <div align="center">
                            <input id="button1"type="submit" name="modifier" value="Modifier" />
                            <input id="button2" type="reset" />
                        </div>
                                    </form>
             </div>
            </div>

    <?php
    include_once (DS."backoffice/include/sidebar.php");
    include_once (DS."backoffice/include/footer.php");
}
else
{
    redirectTo(URLBACK);
}
?>